package com.job.sun.HomeWork0707;

/**
 * @author 张春阳
 * @version 1.0
 * @since 2022-07-08 17:54:20
 */
public class TestTeacher {
    public static void main(String[] args) {
        //静态代码块先执行
        //类代码块再执行
        //构造方法执行

        //方法内代码块 限制变量周期
        {
            Teacher te01 = new Teacher();
            System.out.println(te01.name);
        }
        Teacher te02 = new Teacher("老李");
        System.out.println(te02.name);
    }

}